import request from '@/utils/request'

// 查询课程信息列表
export function listStudentCourse(query) {
  return request({
    url: '/student/studentCourse/list',
    method: 'get',
    params: query
  })
}

// 查询课程信息详细
export function getStudentCourse(id) {
  return request({
    url: '/student/studentCourse/' + id,
    method: 'get'
  })
}

// 新增课程信息
export function addStudentCourse(data) {
  return request({
    url: '/student/studentCourse',
    method: 'post',
    data: data
  })
}

// 修改课程信息
export function updateStudentCourse(data) {
  return request({
    url: '/student/studentCourse',
    method: 'put',
    data: data
  })
}

// 删除课程信息
export function delStudentCourse(id) {
  return request({
    url: '/student/studentCourse/' + id,
    method: 'delete'
  })
}
